package com.baidu.fallback;

import com.baidu.UserFeignApi;
import com.baidu.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserFeignApiFallBack implements UserFeignApi {
    @Override
    public User findById(String username) {
        User user = new User();
        user.setName(username);
        user.setNickName("FeignFallback...");

        return user;
    }
}